package org.fanximall.erp.product.infrastructure.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.fanximall.erp.common.base.BaseDO;

/**
 * @author      :  william
 * @version     :  V1.0  created in 2024/4/30
 */
/**
    * 类目表
    */
@Getter
@Setter
@ToString
@TableName(value = "product_category")
public class ProductCategoryDO  extends BaseDO {
    private Long id;

    /**
     * 类目id
     */
    @TableId(value = "category_id", type = IdType.ASSIGN_ID)
    private Long categoryId;

    /**
     * 上级类目
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 类目中文名
     */
    @TableField(value = "name_cn")
    private String nameCn;

    /**
     * 类目英文名
     */
    @TableField(value = "name_en")
    private String nameEn;

    /**
     * 级别 
     */
    @TableField(value = "`level`")
    private Integer level;

    /**
     * 1 待生效 2 生效 3 失效
     */
    @TableField(value = "`state`")
    private Integer state;

    /**
     * 是否是叶子类目 0 否 1是 
     */
    @TableField(value = "leaf")
    private Boolean leaf;


}